package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: MicroBlog
 * Description:
 * date: 2020/8/28 0028 15:30:24
 * <p>
 * mid	        int	            主键，自增	编号
 * info	        varchar(255)	非空	        正文
 * image	    varchar(255)		        图片
 * video	    varchar(255)		        视频
 * music	    varchar(255)		        音乐
 * postedTime	datetime	    非空	        发布时间
 * ip	        varchar(255)		        发布ip
 * address	    varchar(255)		        发布地址
 * phoneType	varchar(255)		        发布设备
 * level	    int[1]	        非空	        微博等级(1:原创,2:转发)
 * parentId	    int	            外键mid	    父微博id
 * comment	    varchar(255)		        转发时评论内容
 * uid	        varchar(255)	外键user表	发表的用户id
 *
 * @author BaiMo
 * @since JDK 1.8
 */
public class MicroBlog implements Serializable {
    private int mid;//编号
    private String info;//正文
    private String image;//图片
    private String video;//视频
    private String music;//音乐
    private String postedTime;//发布时间
    private String ip;//发布ip
    private String address;//发布地址
    private String phoneType;//发布设备
    private int level;//微博等级(1:原创,2:转发)
    private MicroBlog parentMicroBlog;//父微博
    private String comment;//转发时评论内容
    private User user;//发表的用户

    public MicroBlog(int mid, String info, String image, String video, String music, String postedTime, String ip, String address, String phoneType, int level, MicroBlog parentMicroBlog, String comment, User user) {
        this.mid = mid;
        this.info = info;
        this.image = image;
        this.video = video;
        this.music = music;
        this.postedTime = postedTime;
        this.ip = ip;
        this.address = address;
        this.phoneType = phoneType;
        this.level = level;
        this.parentMicroBlog = parentMicroBlog;
        this.comment = comment;
        this.user = user;
    }

    public MicroBlog() {
    }

    @Override
    public String toString() {
        return "MicroBlog{" +
                "mid=" + mid +
                ", info='" + info + '\'' +
                ", image='" + image + '\'' +
                ", video='" + video + '\'' +
                ", music='" + music + '\'' +
                ", postedTime='" + postedTime + '\'' +
                ", ip='" + ip + '\'' +
                ", address='" + address + '\'' +
                ", phoneType='" + phoneType + '\'' +
                ", level=" + level +
                ", parentMicroBlog=" + parentMicroBlog +
                ", comment='" + comment + '\'' +
                ", user=" + user +
                '}';
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getMusic() {
        return music;
    }

    public void setMusic(String music) {
        this.music = music;
    }

    public String getPostedTime() {
        return postedTime;
    }

    public void setPostedTime(String postedTime) {
        this.postedTime = postedTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhoneType() {
        return phoneType;
    }

    public void setPhoneType(String phoneType) {
        this.phoneType = phoneType;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public MicroBlog getParentMicroBlog() {
        return parentMicroBlog;
    }

    public void setParentMicroBlog(MicroBlog parentMicroBlog) {
        this.parentMicroBlog = parentMicroBlog;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
